import {createRouter, createWebHistory} from 'vue-router';
import Demo1 from '../components/Demo1.vue';
import Demo2 from '../components/Demo2.vue';


const routes = [
    {
        path: '/demo1',
        name: 'Demo1',
        component: Demo1
    },
    {
        path: '/demo2',
        name: 'Demo2',
        component: Demo2
    }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;